<template>
  <div>
    <new-project-button @new-project="newProject" />
    <project-info :scroll-right="scrollToRight" />
  </div>
</template>
<script setup>
import { ref, nextTick } from 'vue'
import NewProjectButton from './new-project-button.vue'
import projectInfo from './project-info.vue'
let scrollToRight = ref(false)
// 新建后默认拉到最右
async function newProject() {
  // await nextTick()
  scrollToRight.value = !scrollToRight.value
}
</script>
<style scoped lang="less"></style>
